package demo.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/**
 * @Title: Entity
 * @Description: 解盘消息
 * @author zhangdaihao
 * @date 2015-09-09 11:04:14
 * @version V1.0
 *
 */
@Entity
@Table(name = "tp_analyze_msg", schema = "")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class AnalyzeMsgEntity implements java.io.Serializable {
	/** id */
	private java.lang.String id;
	/** 标题 */
	private java.lang.String title;
	/** 内容 */
	private java.lang.String content;
	/** 发布人 */
	private java.lang.String author;
	/** analyzeRoomId */
	private AnalyzeRoomEntity analyzeRoom;
	// private java.lang.String analyzeRoomId;
	/** 发布时间 */
	private java.util.Date publishTime;
	/** 有效状态  0无效，1有效*/
	private java.lang.String status;
	/** createBy */
	private java.lang.String createBy;
	/** createName */
	private java.lang.String createName;
	/** createDate */
	private java.util.Date createDate;
	/** updateBy */
	private java.lang.String updateBy;
	/** updateName */
	private java.lang.String updateName;
	/** updateDate */
	private java.util.Date updateDate;
	/** delflag */
	private java.lang.String delflag;
	/** delDate */
	private java.lang.String delDate;

	/**
	 * 方法: 取得java.lang.String
	 *
	 * @return: java.lang.String id
	 */

	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name = "ID", nullable = false, length = 32)
	public java.lang.String getId() {
		return this.id;
	}

	/**
	 * 方法: 设置java.lang.String
	 *
	 * @param: java.lang.String id
	 */
	public void setId(java.lang.String id) {
		this.id = id;
	}

	/**
	 * 方法: 取得java.lang.String
	 *
	 * @return: java.lang.String 标题
	 */
	@Column(name = "TITLE", nullable = true, length = 64)
	public java.lang.String getTitle() {
		return this.title;
	}

	/**
	 * 方法: 设置java.lang.String
	 *
	 * @param: java.lang.String 标题
	 */
	public void setTitle(java.lang.String title) {
		this.title = title;
	}

	/**
	 * 方法: 取得java.lang.String
	 *
	 * @return: java.lang.String 内容
	 */
	@Column(name = "CONTENT", nullable = true, length = 5000)
	public java.lang.String getContent() {
		return this.content;
	}

	/**
	 * 方法: 设置java.lang.String
	 *
	 * @param: java.lang.String 内容
	 */
	public void setContent(java.lang.String content) {
		this.content = content;
	}

	/**
	 * 方法: 取得java.lang.String
	 *
	 * @return: java.lang.String 发布人
	 */
	@Column(name = "AUTHOR", nullable = true, length = 32)
	public java.lang.String getAuthor() {
		return this.author;
	}

	/**
	 * 方法: 设置java.lang.String
	 *
	 * @param: java.lang.String 发布人
	 */
	public void setAuthor(java.lang.String author) {
		this.author = author;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ANALYZE_ROOM_ID")
	public AnalyzeRoomEntity getAnalyzeRoom() { //关联解盘房间
		return analyzeRoom;
	}

	public void setAnalyzeRoom(AnalyzeRoomEntity analyzeRoom) {
		this.analyzeRoom = analyzeRoom;
	}

	// /**
	// *方法: 取得java.lang.String
	// *@return: java.lang.String analyzeRoomId
	// */
	// @Column(name ="ANALYZE_ROOM_ID",nullable=true,length=32)
	// public java.lang.String getAnalyzeRoomId(){
	// return this.analyzeRoomId;
	// }
	//
	// /**
	// *方法: 设置java.lang.String
	// *@param: java.lang.String analyzeRoomId
	// */
	// public void setAnalyzeRoomId(java.lang.String analyzeRoomId){
	// this.analyzeRoomId = analyzeRoomId;
	// }
	/**
	 * 方法: 取得java.util.Date
	 *
	 * @return: java.util.Date 发布时间
	 */
	@Column(name = "PUBLISH_TIME", nullable = true)
	public java.util.Date getPublishTime() {
		return this.publishTime;
	}

	/**
	 * 方法: 设置java.util.Date
	 *
	 * @param: java.util.Date 发布时间
	 */
	public void setPublishTime(java.util.Date publishTime) {
		this.publishTime = publishTime;
	}

	/**
	 * 方法: 取得java.lang.String
	 *
	 * @return: java.lang.String 有效状态
	 */
	@Column(name = "STATUS", nullable = true, length = 2)
	public java.lang.String getStatus() {
		return this.status;
	}

	/**
	 * 方法: 设置java.lang.String
	 *
	 * @param: java.lang.String 有效状态
	 */
	public void setStatus(java.lang.String status) {
		this.status = status;
	}

	/**
	 * 方法: 取得java.lang.String
	 *
	 * @return: java.lang.String createBy
	 */
	@Column(name = "CREATE_BY", nullable = true, length = 32)
	public java.lang.String getCreateBy() {
		return this.createBy;
	}

	/**
	 * 方法: 设置java.lang.String
	 *
	 * @param: java.lang.String createBy
	 */
	public void setCreateBy(java.lang.String createBy) {
		this.createBy = createBy;
	}

	/**
	 * 方法: 取得java.lang.String
	 *
	 * @return: java.lang.String createName
	 */
	@Column(name = "CREATE_NAME", nullable = true, length = 32)
	public java.lang.String getCreateName() {
		return this.createName;
	}

	/**
	 * 方法: 设置java.lang.String
	 *
	 * @param: java.lang.String createName
	 */
	public void setCreateName(java.lang.String createName) {
		this.createName = createName;
	}

	/**
	 * 方法: 取得java.util.Date
	 *
	 * @return: java.util.Date createDate
	 */
	@Column(name = "CREATE_DATE", nullable = true)
	public java.util.Date getCreateDate() {
		return this.createDate;
	}

	/**
	 * 方法: 设置java.util.Date
	 *
	 * @param: java.util.Date createDate
	 */
	public void setCreateDate(java.util.Date createDate) {
		this.createDate = createDate;
	}

	/**
	 * 方法: 取得java.lang.String
	 *
	 * @return: java.lang.String updateBy
	 */
	@Column(name = "UPDATE_BY", nullable = true, length = 32)
	public java.lang.String getUpdateBy() {
		return this.updateBy;
	}

	/**
	 * 方法: 设置java.lang.String
	 *
	 * @param: java.lang.String updateBy
	 */
	public void setUpdateBy(java.lang.String updateBy) {
		this.updateBy = updateBy;
	}

	/**
	 * 方法: 取得java.lang.String
	 *
	 * @return: java.lang.String updateName
	 */
	@Column(name = "UPDATE_NAME", nullable = true, length = 32)
	public java.lang.String getUpdateName() {
		return this.updateName;
	}

	/**
	 * 方法: 设置java.lang.String
	 *
	 * @param: java.lang.String updateName
	 */
	public void setUpdateName(java.lang.String updateName) {
		this.updateName = updateName;
	}

	/**
	 * 方法: 取得java.util.Date
	 *
	 * @return: java.util.Date updateDate
	 */
	@Column(name = "UPDATE_DATE", nullable = true)
	public java.util.Date getUpdateDate() {
		return this.updateDate;
	}

	/**
	 * 方法: 设置java.util.Date
	 *
	 * @param: java.util.Date updateDate
	 */
	public void setUpdateDate(java.util.Date updateDate) {
		this.updateDate = updateDate;
	}

	/**
	 * 方法: 取得java.lang.String
	 *
	 * @return: java.lang.String delflag
	 */
	@Column(name = "DELFLAG", nullable = true, length = 2)
	public java.lang.String getDelflag() {
		return this.delflag;
	}

	/**
	 * 方法: 设置java.lang.String
	 *
	 * @param: java.lang.String delflag
	 */
	public void setDelflag(java.lang.String delflag) {
		this.delflag = delflag;
	}

	/**
	 * 方法: 取得java.lang.String
	 *
	 * @return: java.lang.String delDate
	 */
	@Column(name = "DEL_DATE", nullable = true, length = 32)
	public java.lang.String getDelDate() {
		return this.delDate;
	}

	/**
	 * 方法: 设置java.lang.String
	 *
	 * @param: java.lang.String delDate
	 */
	public void setDelDate(java.lang.String delDate) {
		this.delDate = delDate;
	}
}
